package DataService;

import PO.UserRole;
import VO.UserVO;

public class UserBLService_Stub implements UserBLService{
	
	int id;
	String name;
	String password;
	UserRole role;
	Boolean logined;
	Boolean registered;

	public UserBLService_Stub(int I, String R, String p, UserRole r) {
		id = I;
		name = R;
		password = p;
		role = r;
		logined = false;
		registered = false;
	}
	@Override
	public ResultMessage changePassword(int id, String password,
			String newPassword, String newPassword2) {
		// TODO Auto-generated method stub
		return ResultMessage.success;
	}

	@Override
	public ResultMessage login(int id, String password) {
		// TODO Auto-generated method stub
		
		return ResultMessage.wrong;
	}

	@Override
	public ResultMessage register(int id, String password) {
		// TODO Auto-generated method stub
		return ResultMessage.failed;
	}
	@Override
	public UserVO get(int i) {
		// TODO Auto-generated method stub
		return new UserVO(id,name,password,role);
	}
	@Override
	public ResultMessage update(UserVO vo) {
		// TODO Auto-generated method stub
		return ResultMessage.not_exist;
	}
	


}
